/*
 * Copyright 2019 ThoughtWorks, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
.gist_panel {
    float: right;
    width: 280px;
    min-height: 190px;
    max-height: 290px;
    border-left: 1px #CCC solid;
    padding-left: 10px;
}

#job_tasks .gist_panel{
    height: 230px;
}

.lookup_command{
    width:  240px !important;
}

.on_cancel_task .gist_panel {
    width: 280px;
    height: 250px;
}

.gist_panel .invalid_snippets h5 {
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 5px;
}

.gist_panel .invalid_snippets ul, .gist_panel .invalid_snippets li {
    float: none;
}

.gist_panel .invalid_snippets .snippets {
    background: #F6F6F6;
    padding: 5px;
    max-height: 110px;
    overflow-y: auto;
}

.on_cancel_task .gist_panel .invalid_snippets .snippets, #job_tasks .snippets{
    max-height: 120px;
}

#task .fieldset{
    overflow: auto;
}

.gist_panel .invalid_snippets .command_name {
    display: block;
    line-height: 14px;
    padding: 3px;
    font-weight:bold;
}

.gist_panel .invalid_snippets ul li{
    border-bottom: 1px #DDD solid;
    padding-bottom: 3px;
    padding-top: 3px;
}

.gist_panel .invalid_snippets ul li:last-child{
    border-bottom:0 none;
    margin-bottom:0;
}

.gist_panel .invalid_snippets .message {
    clear: both;
    display: block;
    line-height: 14px;
    padding: 2px 5px 1px
}

.code_text{
    font-family: courier new, monospace;
}


/*snippet details*/

.gist_panel .snippet_details>div {
    clear: both;
    overflow: hidden;
    padding: 5px 0;
    margin-left: 10px;
    line-height: 1.5em;
    margin-right: 10px;
    border-bottom: 1px solid #ccc;
}

.gist_panel .snippet_details>div:last-child {
    border-bottom: 0 none;
}

.gist_panel .snippet_details {
    background: white;
    border: 1px solid #ccc;
}

.gist_panel .snippet_details .name {
    font-weight: bold;
}

.gist_panel .snippet_details .author, .gist_panel .snippet_details .description .key{
    float: left;
    font-weight: bold;
    color: #999999;
}

.gist_panel .snippet_details .description .key {
    display: block;
    float: none;
    clear:both;
}

.gist_panel .snippet_details .more-info {
    float: right;
}
